<style lang="scss">
	@import url('../static/css/projectanswer.css');
</style>
<template>
	<!-- 公共头部 -->
	<view>
		<my-header :title="information.project_name"></my-header>
	</view>
	<!-- 骨架 -->
	<uni-skeleton animated :loading="loading"></uni-skeleton>
	<!-- 项目答题界面 -->
	<view class="content" v-show='!loading'>
		<uni-section>
			<view class="example">
				<!-- 基础用法，=不包含校验规则 -->
				<uni-forms ref="form" >
					<view>
						<view class="problem">{{pagecount}}、{{nowprojectoption.option_title}}</view>

						<view class="uni-list">
									<radio-group @change="radioChange">
										<label class="uni-list-cell uni-list-cell-pd" v-for="(item,index) in nowprojectoption.project_answer" :key="item.value">
											<view>
												<radio  :value="index"  name="information"  />
											</view>
											<view>{{item.text}}</view>
										</label>
									</radio-group>
								</view>
					</view>

				</uni-forms>

				<view class="button-group" v-if="pagecount == allnumbers" @click="down"> 提交 </view>
				<view class="button-group" v-else @click="down"> 下一题 </view>
			</view>
		</uni-section>
	</view>
</template>
<script type="module" src="../static/js/projectanswer.js"></script>